updated web.js: instant previews