working on jasmine specs for js