Code for JQuery Chapter 3 exercises