Fix some problems with the rendered HTML

Fixes this issue https://github.com/SCLInternet/BmCalendar/issues/6