Replace const with var so ast2mscgen can also run in IE10