reorg js