title factored into simple jade function