Building a calculator using Jasmine to unit test