reorganized js files