Enhance layout of prefs-dialog.
Small code layout changes.
Add missing semicolons.
Make jshint happy.