re-ordering js