refactor(requirejs_html): simplify by using promises throughout.