anchor.diff:      s.src = 'chrome-extension://<%=FactlinkUI::Application.config.chrome_extension_id%>/manifest.json';
     }
   
  -  var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  -  if (is_chrome) {
  +  function is_chrome() {
  +    return navigator.userAgent.toLowerCase().indexOf('chrome') > -1;
  +  }
  +  
  +  if (is_chrome()) {
  +    $('html').addClass('is-chrome');
  +
       detectChromeExtension(runIfChromeExtensionIsInstalled, runIfChromeExtensionIsNotInstalled);
  +  } else {
  +    $('html').addClass('no-chrome');    
     }
   
     function runIfChromeExtensionIsInstalled(){
  
positive.code: <% if FactlinkUI::Application.config.chrome_extension_id %>
    function detectChromeExtension(if_installed, if_not_installed) {
      var s = document.createElement('script');
      s.onerror = if_not_installed;
  
negative.code:   function runIfChromeExtensionIsNotInstalled(){
      $('html').addClass('chrome_without_extension');
    }
  
  }());
  
  <% end %>