Frontend: Decode, this/self miss
Frontend: HTML5 doctype fixes

When adding the HTML5 doctype, some styling/layout was interpreted
slightly different. Compensate for this.

Also put encode before decode in the tab list.