reorganized js files to allow sails asset integration