slight fixes.
slight fix to index.js