add date.now fix for IE