Add example and fix the index.js