Some fixes for socket.io or uglifyjs