Compensate for lack of Date.now() in IE8