Implicit flow should just work on the page you are on, assuming you can get a good redirect URL back to your app, if the apps URL is localhost on the app.
As an working example code:
https://barrycarlyon.github.io/twitch_misc/authentication/implicit_auth/