modified 2nd web.js