Use new Date.getTime() instead of Date.now() to support older browsers