fixed a typo in index.js