reorder folders in js