Don't use the non-standard `const` keyword.
Fix JSHint errors.