move js files to directories