Convert Studio JS to use require.js