Close html list element when using Bootstrap 3

* When the Bootstrap 3 flag is set, a `<ul>` tag is opened rather than a `<div>`. This also needs to be closed at the end.

Fixes #22