jasmine-jquery working with automated