Update logging to support IE
Set handlebars and ui as weak references