title: Dynamically adding multiple events to multiple webviews
body: <p>Im new to using Electron and also kinda new to using the webview tag, so I pre-apologize for maybe not knowing something really obvious.</p>
  
  <p>Im trying to dynamiclly create web views and add the following events to them.</p>
  
  <p>did-start-loading
  did-stop-loading
  did-finish-load
  page-title-updated
  dom-ready
  Im using a mix of Jquery and pure javascript to do this but currently im not having much luck. I have attached my code below so you can try find anything obvious there. Im not getting any javascript errors in the debug menu but at the same time none of it seems to be working.</p>
  
  <pre><code>function AddTab(URL){
  tabcount++;
  var NewTab = '&lt;li href="#content-' + tabcount + '" id="tab' + tabcount + '" class="current"&gt;&lt;img src="System_Assets/icons/Logo.png" /&gt;&lt;span&gt;Tab Home&lt;/span&gt;&lt;a class="TabClose" href="#"&gt;&lt;/a&gt;&lt;/li&gt;';
  var NewContent = '&lt;div id="content-' + tabcount + '" class="ContentHolder" style="display:block;"&gt;&lt;webview id="webview-content-' + tabcount + '" src="http://www.ohhaibrowser.com"&gt;&lt;/webview&gt;&lt;/div&gt;';
  ChangeCurrent("");
  //Hide current tabs
  $(".ContentHolder").css("display", "none");
  //Show new tab
  $("#tabs-menu").append(NewTab);
  $("#BrowserWin").append(NewContent);
  $("#CurWebWin").val("webview-content-" + tabcount);
  AddListeners("webview-content-" + tabcount,"tab" + tabcount);
  UpdateTabCount();
  }
  
  function UpdateTabCount(){
  $("#HideShow").text(tabcount);
  }
  
  function AddListeners(webview,tabid)
  {
  element = document.getElementById(webview);
  
  element.addEventListener("did-start-loading", function() {
      loadstart(tabid);
  });
  
  element.addEventListener("did-stop-loading", function() {
      loadstop(tabid,webview);
  });
  
  element.addEventListener("did-finish-load", function() {
       loadstop(tabid,webview);
  }); 
  
  element.addEventListener("page-title-updated", function() {
       loadstop(tabid,webview);
  });
  
  element.addEventListener("dom-ready", function() {
       domloaded(tabid,webview);
  });
  
  }
  
  function loadstart(tabid)
  {
  $("#" + tabid + " span").val('Loading...');
  //$("#" + tabid + " img")
  }
  
  function loadstop(tabid, webview)
  {
  $("#" + tabid + " span").val('');
  }
  
  function domloaded(tabid, webview)
  {
  element = document.getElementById(webview);
  $("#" + tabid + " span").val(element.getURL());
  }
  </code></pre>