(function (e) {
    var a = $(".counter"),
        c = new Date(e),
        b = new Date(),
        f = Date.parse(c) - Date.parse(b);
    currTime = Math.ceil((f / (1000 * 60 * 60)) / 24);
    tens = Math.floor(Math.abs(currTime) / 10);
    ones = Math.abs(currTime) - (tens * 10);
    a.find(".tens").text(tens);
    a.find(".ones").text(ones)
})("December 25, 2011");

// additional script
/*
(function (b) {
    var a = b('a[href*="donate"]'),
        c = b("<div>");
    if (!a) {
        return
    }
    c.append('<h2><img src="http://www.abs-cbnfoundation.com/images/images/sorry-text.png" alt="Sorry" /></h2>').append("<p>The donation link will be available in a few days!</p>").append('<p class="btn"><a href="#close">Close</a></p>').attr("id", "popup").appendTo("body");
    a.click(function (d) {
        d.stopPropagation();
        c.stop().fadeIn();
        b(".wrapper").animate({
            opacity: 0.2
        });
        b('#popup a[href*="close"]').focus();
        d.preventDefault()
    });
    b('#popup a[href*="close"], .wrapper').click(function (d) {
        if (c.is(":visible")) {
            c.stop().fadeOut()
        }
        b(".wrapper").animate({
            opacity: 1
        });
        if (b(this).is("a")) {
            d.preventDefault()
        }
    })
})(jQuery);
*/
