edited web.js for part2