Hide popup menu when click outside
Changed references to document and window to $document and $window
Merge pull request #32 from configit/picker-close-popup

Hide popup menu when click outside