fixed application.js to load js files properly