diff --git a/js/splashify_init.js b/js/splashify_init.js
index 032bc69..29d84d2 100644
--- a/js/splashify_init.js
+++ b/js/splashify_init.js
@@ -4,11 +4,13 @@
     attach: function (context, settings){
       $(window).load(function(){
         var splash = $.jStorage.get("splash");
-        var nowtimeSeconds = settings.splashify.js_nowtime;
+        var expireAfter = settings.splashify.js_expire_after;
+        var now = new Date();
+        var nowtimeSeconds = now.getTime() / 1000;
         var splashalways = settings.splashify.js_splash_always;
         if(!splash || splash < nowtimeSeconds || splashalways=='1'){
           // Set when the splash variable should expire.
-          $.jStorage.set("splash", settings.splashify.js_expiretime);
+          $.jStorage.set("splash", nowtimeSeconds + expireAfter);
 
           // If we are displaying each splash page in sequence, we need to
           // determine the next url.
diff --git a/splashify.display.inc b/splashify.display.inc
index d5276f3..84f3677 100644
--- a/splashify.display.inc
+++ b/splashify.display.inc
@@ -295,9 +295,8 @@ function splashify_init() {
 
   // Make our splash settings variables available to our JavaScript.
   $js_settings = array(
-    'js_nowtime' => $js_nowtime,
     'js_splash_always' => $js_splash_always ? '1' : '0',
-    'js_expiretime' => $js_expiretime,
+    'js_expire_after' => $js_expiretime - $js_nowtime,
     'js_mode' => $js_mode,
     'js_mode_settings' => $js_mode_settings,
   );
