Prototype for AngularJS modal