Updated web.js attempt 1