Update scserver.js

Add cookies to socket object