support returning handlebars templates directly from amd wrapper