Convert Studio JS to use require.js
Add waiting to fix flaky acceptance tests