use coffeescript instead of vanilla js