pull socket io code out of index.ejs