Here:
window.onunload = function() {
window.clearInterval(poll);
} <--------
solved Where is there a missing semicolon?
Here:
window.onunload = function() {
window.clearInterval(poll);
} <--------
solved Where is there a missing semicolon?