Clear popover when clicking outside of it
Increase max cyclomatic complexity to 15 for coffeescript