What to do with <script> code

I am implementing Google tasks in appstudio using Javascript. I am trying to implement the example shown on JavaScript quickstart  |  Google Tasks  |  Google Developers (under Set Up the Sample). I created 2 buttons (using controls) and named them authorize_button and signout_button as shown in the example. I put the first chunk of in the code behind for the form and filled in the client_ID and API key values.

My question is about the second chunk of code. I don’t know where to put it nor in what format. Any ideas? This is the code from the example:

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

I attached my sample project here also.

GoogleTasks1.appstudio.zip (11.9 KB)

There are a number of ways to do this.

The easiest (I have not tested if it works in your case) would be to stick it in extraheaders in Project Properties.