minor refactoring of _hamlc_helpers.js.coffee