Switched to pure Javascript because I'm not a huge fan of CoffeeScript