Implemented jade templates, rewriting some code from now on.