also restructure the code so the js file has an update and start function that gets called.
the wii does the game loop now, as i passed some c functions to javascript. those functions are inside objects to make the js api easier to read and use.