data table - refactor coffeescript