Applied Date.now() fix for IE8