updated index.js page