Upgrade to jQuery Mobile v1.2.0 and jQuery 1.8.2
Make the JS-code pass a JSHint-test