add socket.io, reorganize head.ejs
merge