Code from video 2 of the jQuery mobile series