coffeescript version of htmlx module