Changing the default page

I’m trying to make index.html a dynamic page with fetch() ect… but i don’t have any idea why it’s not working, i’m new and i’m using core js without bundler
Thank you!