Calculator in Javascript tested using Jasmine