web.js: render index + beautify