Fix IE 8 by using compatible date methods

`Date.now()` is not supported in IE8