dynamic javascript loading not needed

I don't think there's any need to load socket.io.js from the same port that it's connecting to, and it complicates the code. But revert this if I turn out to be wrong.