Pager.js to coffee