Fixing some bad old decisions

Proper NPM git module directory structure
Example moved to examples/
Fixed some obvious jslint errors
Fixes #24