Don't scope timer functions to window object.

This was broken in nodejs the timer functions are defined on the global object.