change uses of Date.now() to new Date() to support old IE, references #236