change from js to coffeeScript