Update src/index.js
Add example usage to README