socket now functional on index2.html