Add code to pages.js.coffee