Fix js compilation order
Fix obj loading