abstracting functions in tabulate.coffee