Changes done to make it work in IE8

Changes done to make it work in IE8