Fix window.swig in NodeJS