adding example.js, updating README.md