Project 5.2 from JavaScript: A Beginner's Guide