update web.js with the necessary moditifcations