requirejs: correct async loading of the template
requirejs: dialog (wip)