update simplifyTemplate() for newer jade versions