fix problems with package.json and setup like npm module, add example.js