BUG: Fix template not being rendered

There were a few errors in the template that have been fixed along with some
syntax errors in the HTML.

Fixes #249