title: keith wood's jquery countdown with server time not working
body: <p>I have the following jQuery that <strong>should</strong> be working but isn't and I can't figure out why. It's supposed to call the remote server time (in this case, I borrowed the server time of the author's website but otherwise it's calling mind - either way both are not working) and then calculate the countdown based on the time difference.</p>
  
  <pre><code>$(document).ready(function () {
  
      function serverTime() {
          var time = null;
          $.ajax({
              url: 'http://keith-wood.name/serverTime.php',
              async: false,
              dataType: 'text',
              success: function (text) {
                  time = new Date(text);
              },
              error: function (http, message, exc) {
                  time = new Date();
              }
          });
          return time;
      }
  
      $(function () {
          $("#defaultCountdown").countdown({
              until: new Date("Jun 24, 2015 16:00:00 +0000"),
              serverSync: serverTime
          });
      });
  
  });
  </code></pre>
  
  <p>And the display it to:</p>
  
  <pre><code>&lt;div id="defaultCountdown"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I have a jsfiddle at <a href="http://jsfiddle.net/ctj90jz6/1/" rel="nofollow">http://jsfiddle.net/ctj90jz6/1/</a> with all the libraries loaded but it's not working. Any ideas why? :(</p>