separated out socket.js from vote.js. beginning of hooks