title: Cannot set boolean values in LocalStorage?
body: <p>I noticed that I cannot set boolean values in <code>localStorage</code>?</p>
  
  <pre><code>localStorage.setItem("item1", true);
  alert(localStorage.getItem("item1") + " | " + (localStorage.getItem("item1") == true));
  </code></pre>
  
  <p>Always alerts <code>true | false</code> when I try to test <code>localStorage.getItem("item1") == "true"</code> it alerts true ... How can I set an item in <code>localStorage</code> to true?</p>
  
  <p>Even if it's a string, I thought only <code>===</code> would check the type? </p>
  
  <p>So </p>
  
  <pre><code>alert("true" == true); // should be true? 
  </code></pre>