Calculator in Javascript. Testing with Jasmine