fix coffeescript compatibility