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.