helpers.coffee translated to es6