Remove trailing spaces and use spaces consistently.
Normalize package.json.
Add .npmignore file.
Add JSHint support.

Use npm run check or npm run lint.
Fix a few JSHint warnings.
Update dependencies and follow semver.