Image recognition with Artificial Intelligence & Machine Learning

I want to know how to recognise images with pure JS and without any third-party APIs or libraries nor even AngularJS or ReactJS. Actually I wanted to implement it in the login system of my project. I had already implemented password authentication.

Is there any inbuilt API in JS to ask user to scan his finger with scanner for login.

And another thing that I wanted to know is how to create a payment application i.e Amazon pay. I just don’t know that how they work so accurately. At least I want to make a website to transfer amount from account to another account. I saw in an article that there is an inbuilt Payment web API which only works on Google Chrome. But I didn’t understood how can I archive that for at least Google Chrome.