title: Open popup and change the icon in a Google Chrome Extension
body: <p>So, I'm trying to do a simple extension for Google Chrome.</p>
  
  <p>What I'm trying to do is: When I click at the icon of my extension it will apppear (the popup.html) and change the icon to default.png.</p>
  
  <p>What I've done so far:</p>
  
  <pre><code>$(document).ready(function() {
      chrome.browserAction.onClicked.addListener(function(tab) 
          {
              chrome.browserAction.setIcon({path:"default.png"});
          });
  
  });
  </code></pre>
  
  <p>The problem is... it only shows up the popup.html... the icon doesnt change. :(</p>
  
  <p>May somebody help me??</p>
  
  <p>Thanks in advance</p>