Javascript modal dialogs with angular/jQuery wrappers