Jasmine helper to spy on jQuery objects