Reorder some js