Making AMD module output return compiled function when only one template is processed

Using Handlebars in an AMD environment, it would be helpful to return the compiled function from the AMD module.

To minimize impact on your current logic, I have only implemented this modification for when one template is being precompiled.