Fix IE 8 by using compatible date methods

`Date.now()` is not supported in IE8
Merge pull request #6 from SBoudrias/patch-1

fixed IE8 by using compatible date methods.