fix little typo in index.js javascript version