Fix for IE9

Replace "const" with "var" so IE9 does not break when this script is read as part of some bundle.