switched cleint from ajax to websockets with socket.io