(function() { self.port.on('displayApps', function(message) { var detectedApps = document.getElementById('detected-apps'); detectedApps.innerHTML = ''; if ( message.tabCache.count > 0 ) { for ( appName in message.tabCache.appsDetected ) { confidence = message.tabCache.appsDetected[appName].confidenceTotal; version = message.tabCache.appsDetected[appName].version; html = '