reorganizing js files