updated web.js to allow instant preview