Changed JS for CoffeeScript