Combined loading hexes and units from server to one method and further separated javascript classes/methods into distinct files