@seanmonstar - I changed from localStorage to sessionStorage so that multiple tabs could be opened at once.