Me, a HTML and JS newbie, has a simple piece of code that was almost literally copied from other answers when I was seeking for a solution for my problem (only changed the v