Code from video 1 of the Jquery mobile series