using requirejs and fixes on gameserver