Block call to change idea until it's done

The call to change a job on the page was returning before the page had
been updated so the tests would fail intermittently.

Also, whitespace :cop:
Merge pull request #38 from swalberg/fix_flaky_ajax_test

Block call to change idea until it's done