rearrange js requirements