remove coffeescript closures so that ES6 compiles.