fix newrelic.coffee

The Newrelic script didn't work (at least on our new hubot). Afaict this was happening because of variables being referenced out of scope.

This fixed it for us.