ISSUE#554. Moved Settings to bottom and reordered the tabs. Fixed up the
javascript code by formatting it and adding missing semicolons.