I\'m getting an error that only appears on the great IE8, it points to the following function, specifically the line: return (expDate.getTime() > Date.now());
return (expDate.getTime() > Date.now());
Looks like Date.now() isn't supported in IE8 (see the table at the bottom):
Date.now()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/now
new Date() should get you a date object with the current date.
new Date()