title: JQuery LocalStorage
body: <p>I am having some issues with JQuery and local storage. I have a div I want to display only once every 4hrs.</p>
  
  <p>Currently, this is my code:</p>
  
  <pre><code>$(function() {
  
    var now = (new Date()).getTime();
    var lastTime = 0;
    var lastTimeStr = localStorage['lastTime'];
    if (lastTimeStr) lastTime = parseInt(lastTimeStr, 10);
    if (now - lastTime &gt; 24*60*60*1000) {
  
  
    //START UP FADEOUT SCREEN
    $('#startup').delay(1500).fadeOut(2000);
  
    } 
    localStorage['lastTime'] = ""+now;​
  
  });
  </code></pre>
  
  <p>However, the fadeout no longer works.</p>
  
  <p>Can anyone help me out with this one? Do I need some kind of plugin for localStorage?</p>
  
  <p>Thanks</p>