These steps demonstrate how to get the JavaScript library for AWS Cognito integration when using simple HTML and JavaScript - no frameworks like ReactJS, or other Node type projects.
Even though you may not want to use a framework, you still require a relatively new stable version of nodejs
My approach: