Fix bug with order js files