moved some js loading stuff around to make it load removtely