Avoid use of 'const' in JS for compatibility with IE < 11.

IE 10 and earlier do not recognise the 'const' keyword for declaring read-only
values, so just use 'var' and politely refrain from modifying them.