I am fairly new to js coding. I am trying to build a webpage that generates a code that can then be used by an API to accept linking. I got so far by googling and modifying code