Switched to CoffeeScript for clarity, brevity