making sure socket io loads client side before all other scrips are loaded and try to connect to sockets, making session id in sockets compatible with socket io 1.0