using chrome.alerm instead of setInterval