Using the prototype pattern to animate elements on the page.