Random Quote Machine nesting event listener in function

I finished this yesterday and while the tweet button and the random quote button are working, I’m not sure if how i coded it was the right way.
Here is the codepen: https://codepen.io/Nazlai/pen/odGPrv

I had trouble storing parsed json in the global scope so i put almost everything together in the request function.

Also, when i click my tweet button, it loads the quote into the tweet window. However, i get this response from the console: “unsafe javascript attempt to initiate navigation”. Would that be a big issue?