Replace region innerHTML with jquery html.

Agreed with @duncanbeevers. Let's add a comment here to explain why this is what it is. At first glance, it's easy to think that this isn't good code.