Refactored a tiny bit of code to make use of CoffeeScript's object declaration helper