change to rails engine. change global.js to global-js.js