Adding some support for IE<9