change load order for main.js compilation