javascript Checkbook exercise.