Fix JSHint new Date() error.