XHR polling didn't work, removing code