new index and web.js adapted