JQMPopup.calcEltCoords() added. Other minor changes.