Reorder the main js file