Chapter 10 exercises (javascript character count etc)