line 86: change it to: setTimeout(getData, 1000);