Tidied up jade files, consolidated routing logic.
fixed typo.