web.js amended