JQMPopup.onBeforePosition() fixes.