JQMPopup.onBeforePosition() improved by adding openOptions.