Template HTML with Coffeescript functions