Improved error checking, now serving socket.io.js.