Update modal.js

Allow scope to windowTemplateUrl Now its not working. In windowTemplate cant add some buttons to close the modal and pass additional info like title or something.
there is an not working example. http://plnkr.co/edit/mysjPOXA68NiaXcqDKvA?p=preview
By edditing a modalWindow directive its posible to do all the stuf.