Translated all JS to CoffeeScript