TDD on Javascript exercise using Jasmine