Add debug logging for IE<9