
var ÖL = ÖL || {};

(function(win, doc) {

    'use strict';

    var fredagsÖl, now;

    fredagsÖl = {
        d: 5, // 0 = sunday, 6 = saturday
        h: 16,
        m: 30,
        s: 0
    };

    ÖL.fredagsÖl = fredagsÖl;

    ÖL.getNextDatetime = function (weekTime) {
        var d = new Date();
        d.setDate(d.getDate() + ((weekTime.d + 7) - d.getDay()) % 7);
        d.setHours(weekTime.h);
        d.setMinutes(weekTime.m);
        d.setSeconds(weekTime.s);
        return d;
    };

    ÖL.getNextFredagsÖl = function () {
        return ÖL.getNextDatetime(ÖL.fredagsÖl);
    };

    ÖL.isTime = function (weekTime) {
        now = new Date();
        return (now.getDay() === weekTime.d && (now.getHours() > weekTime.h || (now.getHours() === weekTime.h && now.getMinutes() > weekTime.m) || (now.getHours() === weekTime.h && now.getMinutes() === weekTime.m && now.getSeconds() >= weekTime.s)));
    };

    ÖL.isFredagsÖl = function () {
        return ÖL.isTime(ÖL.fredagsÖl);
    };

}(window, document));

@@ -621,32 +621,119 @@
 on (weekTime) %7B%0A
+        var sameDay, sameHour, sameMinute, isAfterHour, isAfterMinute, isAfterSeconds;%0A
         now = ne
@@ -754,16 +754,18 @@
     
-return (
+sameDay = 
 now.
@@ -791,45 +791,29 @@
 me.d
- && (now.getHours() %3E weekTime.h %7C%7C (
+;%0A        sameHour = 
 now.
@@ -829,35 +829,54 @@
 ) === weekTime.h
- &&
+;%0A        sameMinute =
  now.getMinutes(
@@ -877,17 +877,19 @@
 nutes() 
-%3E
+===
  weekTim
@@ -895,14 +895,32 @@
 me.m
-) %7C%7C (
+;%0A        isAfterHour = 
 now.
@@ -922,35 +922,33 @@
  now.getHours() 
-===
+%3E
  weekTime.h && n
@@ -942,19 +942,41 @@
 ekTime.h
- &&
+;%0A        isAfterMinute =
  now.get
@@ -977,35 +977,33 @@
 ow.getMinutes() 
-===
+%3E
  weekTime.m && n
@@ -1001,11 +1001,34 @@
 me.m
- &&
+;%0A        isAfterSeconds =
  now
@@ -1054,16 +1054,133 @@
 ekTime.s
+;%0A        return (sameDay && (isAfterHour %7C%7C (sameHour && isAfterMinute) %7C%7C (sameHour && sameMinute && isAfterSeconds
 )));%0A   

Refactor isTime for improved readability