Codewars: If you can't sleep, just count sheep (8 kyu) TDD in JavaScript