Updated the index.js.