reorg javascript/