changed Date.now to closure'd getTime because of IE8 incompatability.