use of const gives errors in IE9 on windows7