reorganize js