CHANGED: JS to CoffeeScript
CHANGED: Some style refactoring