update deps in package.json, and ignore examples with .npmignore
fixed incorrect require statement