Code from video 3 of the jQuery mobile series