trim embed codes
Switch to socket.IO v.1+