switched to coffeescript