change application.js, adds method cjs.