Fix so that socket.io client works when wrapped by require.js