IE8 fix, closes  #172, closes #173
Merge pull request #174 from Fidilip/172_IE8-fix

IE8 fix, closes  #172, closes #173