changing socket to XHR polling for herokut to work