JSLint date(), including localizing accidental global 'i' var.