Object oriented JS and jasmine unit testing