update for index.js