fix jasmine errors