ugly (but almost working) handlebars form