write clickAway function
Actually hide on popover click outside of popover

Fixes #99
Fix indentation
Merge pull request #105 from adicu/click-away

Clicking outside popover hides it