Fix socket.io client-side script URL such that it works for debug mode