My project works perfectly on my server but not on codepen

Hi,

So, I have completed random quote machine challenge, which result of you can see here: http://mattosuch.eu/webProjects/randomQuoteMachine/

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:

Thanks
Matt

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.