Tidied up navigation/header and togglelist

It's a shame we can't calculate the viewbox from the javascript variables (or the other way around), so that they always stay in sync.