window.onload = function() {

	setInterval(Pingaling.ping, Pingaling.waitTime);
	setInterval(function() {

		var since = Math.floor((Date.now() - Pingaling.lastResponse) / 1000);

		// Everything's all good!
		if (since < Pingaling.BAD_START) {
			chrome.browserAction.setIcon({ path: "good.png" });
		}

		// Not so good
		else {
			chrome.browserAction.setIcon({ path: "bad.png" });
			chrome.browserAction.setBadgeBackgroundColor({ color: [255, 0, 0, 255] });
			chrome.browserAction.setBadgeText({ text: since });
		}

	}, 500);

};

@@ -282,17 +282,17 @@
 th: 
-%22
+'
 good.png
 %22 %7D)
@@ -283,25 +283,77 @@
 h: 'good.png
-%22
+' %7D);%0A%09%09%09chrome.browserAction.setBadgeText(%7B text: ''
  %7D);%0A%09%09%7D%0A%0A%09%09
@@ -420,17 +420,17 @@
 th: 
-%22
+'
 bad.png
-%22
+'
  %7D);
@@ -552,22 +552,29 @@
 (%7B text:
+ ('' +
  since
+)
  %7D);%0A%09%09%7D

Add tooltip text