fixing order js