Hi,
you can adopt the principle of my example code in your jquery ui code, if you want to stick to a pure jquery ui solution.
I tend to use jquery mobile ui with additional plugins only - to avoid any potential conflicts between jquery ui and jquery mobile ui.
jquery mobile ui supports win, mac, linux, raspberry clients etc. so far have made good experience. keep the client ui simple is key.
Let me know your experience as well,