Click outside
In order to aid user experience, you can add the following script to the end of your file, giving you the ability to dismiss modal content by 'clicking outside'
<script src="assets/js/click-outside.js"/>
For usage please see modal components etc