Moves javascript to bottom of gamebase