Makes the JS code IE8 compatible