   try {
                            if (typeof func !== 'function') {
                                console.groupCollapsed(
                                    'Invalid ' + methodName + ' CALLBACK argument: %o',
                                    func);
                                console.trace();
                                console.groupEnd();
                                throw new TypeError();
                            }

                            if (oneTime) {
                                delete activeTimers[id];
                            }

                            func.apply(self, args);

                        } catch (e) {

                            if (e.message !== '') {
                                console.error(e);
                            }
                        }
                    },
                    delay);

                activeTimers[id] = func;

                return id;

            } catch (e) {

                if (e.message !== '') {
                    console.error(e);
                }
            }
        };

        window[methodName].activeTimers = activeTimers;
    }

    function clearTimer(methodName, activeTimers) {

        var nativeMethod = window[methodName];

        window[methodName] = function (id) {

            nativeMethod(id);
            delete activeTimers[id];
        };
    }

    setTimer('setTimeout', activeTimeouts, true);
    clearTimer('clearTimeout', activeTimeouts);

    setTimer('setInterval', activeIntervals, false);
    clearTimer('clearInterval', activeIntervals);
})();
