add jshintrc
add example as package.json bin
improve example readability