reorganize js files