removed window-reference.

Since node.js doesn't have a global window object (d'oh)...