Code for jQuery Mobile