converted to CoffeeScript
Merge pull request #3 from mikeedwards/coffeescript-convert

converted to CoffeeScript