used coffeescript instead of raw script