javascript unit test using jasmine