My project works perfectly on my server but not on codepen


So, I have completed random quote machine challenge, which result of you can see here:

But, when I am trying to put it on Codepen, it does not work. I have tried many operations, but eventually I ran out of ideas. For me, it seems that javascript is crashing at some point, no clue why. Can you please tell me what should I do, to make it working on CP so I can submit my project?

Here is pen I am talking about:


Open your browser dev tools and you’ll see the problem:

Okay, I have changed request URL to https so the quotes started to show up, but background does not behave like on the server version. I am sure, I have included jQuery library so it shouldn’t be an issue.