Rearrange js