added the "hideOnClickOutside" option
Merge pull request #15 from Leandros/patch-2

added the "hideOnClickOutside" option

In terms of whether I use the dev or master branches, I'm afraid it's quite random... although master is generally fine!