Fixes const keyword for IE10
Merge pull request #445 from yurydelendik/ie10-const

Replacing const to var for IE10