Fixed #33 - log properly formatted errors on IE.