Update web.js

got some SyntaxError: Unexpected token : errors