Adding a method to get a stacktrace as an html string