javascript in 24 hours chapter04