Remove some unused code.
Simplify the JavaScript for navigation.
Get the navigation working with focus events again.