improved global window variable detection under nodejs