Updated web.js with version2