modified web.js to be accessible thor ec2