Added jQuery Mobile 1.4.2 and jQuery 1.9 to test the latest versions.
Compatible with jQuery Mobile 1.4.3
Options added
Refactored lot of code to make the popup logic lot easier.