Fixed refresh notifications hanging

- Fixed refresh notifications hanging the extension. This was caused by
an infinite loop that occured from refreshing when divs were more than
specified in options.