fix for IE

now works on IE9+