Make use of UI.registerHelpers whenever possible

Use Handlebars.registerHelpers if UI isn’t defined

Update some variable names in preparation for Handlebars deprecation