javascript - added tests with Jasmine