Converted ng table stuff to coffeescript