improved usage of coffeescript