Removed game loop from javascript.