some improvements to jade templates