JavaScript tdd Study