Getting Google Calendar Example to run in appstudio

I am doing some work trying to use the Google calendar API with appstudio. Google provides a quickstart sample in JS embedded in HTML - but I don’t know how to integrate this last part of the sample into appstudio. Thoughts?

<script async defer src="https://apis.google.com/js/api.js"
       onload="this.onload=function(){};handleClientLoad()"
       onreadystatechange="if (this.readyState === 'complete') this.onload()">
</script>

The Google Quickstart is at https://developers.google.com/calendar/quickstart/js

I have run it two ways (with the above code commented out):

no controls - just the JS code - nothing happens. No errors - just a blank form.
put the JS code inside a form.onshow event - same outcome
put the JS code inside a button onclick event - same outcome

Tip : If you’re pasting code, html or config files, surround the code with triple back ticks (```), before the first line and after the last one. It will be formatted properly.

Are there any messages in the Chrome Console?