Add IE8 support for the JS