changing Date.now to Math.random for IE compatibility