js order fix