Added checks
New web.js from HW7
Changes from HW7