socket.io client working with requirejs