edited web.js to look like example