This is an example of calling an AWS Lambda function from a web page via JavaScript.
Instead of a static "Hello World" sample, here you can provide a name, and you will receive your greetings.
Try without a name, too.