refactor debug to only make one call to chrome storage on each page