Separate jQuery functions from jasmine matchers