Submitting the form was causing jasmine to loop.