switched server from ajax to websockets with socket.io