Relevant code from the book jQuery: A Beginner's Guide