Update popupDirective.js
Update popupDirective.js

Code refactor for readability.
Better positioning.
Fixed z-indexing.
Fixed touch handling of hiding popup.
bklik/popupDirective,bklik/popup-directive,bklik/popup