modified web.js to reflect changes imidiately