Reworked to use jQuery Mobile UI Framework