Update tr.coffee

a few changes