jquery-modal based on https://github.com/kylefox/jquery-modal for angularjs