adding up to chapter 13 client side javascript