Get  texts into a tab separated string table_with_headers = $(this.dom.table).find("thead tr th").map(-&gt;
  $(this).text()
).get().join("\t")


Can one write it nicer? I especially don't like the inner function in map syntax enforced by CoffeeScript and jQuery.
You can use explicit find like so

$ 'thead tr th', @dom.table


and put some indentations instead of braces

table_with_headers = $ "thead tr th", @dom.table
.map -&gt; @.text()
.join '\t'


Also try to use list comprehesion

table_with_headers = [
  $(th).text()
  for th in
  $ "thead tr th", @dom.table
].join '\t'