AngularJS directive to use JS popup boxes.