IE does not support const, use var instead