Minor error in index.js