const to var for IE