Make npm test work on Windows and ignore node_modules directory

Addresses:
https://code.google.com/p/esprima/issues/detail?id=490

Also, added `node_modules` to `.gitignore`.