Fixed the header...

Not sure I'm happy with the code changes I made, we may revisit that
soon because the header/footer/main should get created in the
router.js, not in the mainview.js.