add example.js and update README
0.0.2