Fix for namespace bug and load socket.io.js locally