Solve TDD problems using Javascript and Jasmine