Update web.js

Making some changes for Socket.io