Replacing const to var for IE10

replacing const to var