Update background.js

State of Heartbleed check is shown for selected tab during tab navigation. Refactored code for changing icon status.