hardcoded links removed from jade templates and middleware