Add index and update web.js to read from index