Jasmine-jQuery tests and Jasmine fixes

Added Jasmine-jQuery tests and fixed a lot of Jasmine types.