title: Javascript - Replace '%20' spaces
body: <pre><code>var loc_array = document.location.href.split('/');
  var linkElement = document.getElementById("waBackButton");
  var newT = document.createTextNode(loc_array[loc_array.length-2]); 
  var repl = newT.replace('%20',' ');
  linkElement.appendChild(repl);
  </code></pre>
  
  <p>Anyone know why this causes the text to not show up?</p>