title: chrome MutationObserver for new paragraph text
body: <p>I haven't really understood quite yet how to use the mutationObserver but what I currently have seems somewhat right... I'd like to do an action every time new <code>p</code> tag appears within the code.. Here is my code thus far:</p>
  
  <pre><code>var target = $('p');
  var observer = new WebKitMutationObserver(function(mutations) {
      mutations.forEach(function(mutation) {
          chrome.storage.sync.get({ getInjection: true }, function(getInject) {
          var getInjectionState = getInject.getInjection;
          if(getInjectionState == true) {
                  arrayOfP = $("p").text();
                  chrome.runtime.sendMessage(arrayOfP, manageResponse);
              }
          });
      });    
  });
  observer.observe(target[0], { attributes: true, childList: true, characterData: true });
  </code></pre>
  
  <p>This code is within a content script in a chrome extension. Why isn't it working? Any help would be appreciated. Thanks!</p>