Fix JS errors and warnings in detailview
Fix detailview for Municipality class