Adds socket.io include to page.

Also, minor formatting cleanup / re-organization.