add jQuery Mobile compatibility

current version can not work with jQuery Mobile 1.4.3.
I've made some change to your code.

please check it.