rewritten x.js into utils.js.coffee in CoffeeScript