Fixes the ordering among JS files