Would appreciate if anyone could look through my code, apologize in advance if the problem was obvious : https://codepen.io/t6huho00/pen/XzwqRe .
Edit: I needed to add ‘&callback=’ to the end of the url in order for it to work. if anyone encounters CORS problems, it could be that you are running the code from your local machine without a server. Try running it from CodePen or Jsfiddle. Have fun coding.