modified web.js to add server for local preview