Fix for jsbeautifier breaking socket.emit function