Replaced Date.now() with (new Date).getTime()

Replaced Date.now() so it works well under IE8