removed reference to window

I want this in nodejs