finished ch10 exercises
extra credit, javascript text counter