How to use Amazon AWS services when building for HTML5?

I want to make use of Cognito which is a user management service. They have a javascript SDK and the C++ sdk can be compiled for Windows/Linux and then used as a plugin library.

How can I access AWS services when building for HTML5?

You can make a copy of the main generated .html file and change that to your liking to add new JavaScript code to it. It is good to make the copy to a different name, so that if you do a new web export it will not overwrite your changes to the .html file. Then you can add

Are there any examples of doing this? It really isn’t clear to me how I would interact with the added javascript.

Nvm, I found this question which pretty much answers my question: