Used requirejs to modulate game loop.