finish chapter 5 of js/jquery