Add some logging to debug IE < 9