Pass 'window' to wrap functions for browserify support

- Pass 'window' to wrap functions for browserify support
- Add node_modules to .gitignore