Trying to solve socket.io bad request problem