Converted script to onepage.coffee.