Changing background video on every site visit/refresh

Hi there

I’m trying to script to change a video background in my section upon every refresh. I want it like this website: wearesunday. com/.

I got this from AI but it isn’t working, can someone help please? It just shows as a broken image link even though the URLs do work.

$w.onReady(function () {
// define the two video URLs
const videoUrls = [
https://video. wixstatic.com/video/4bd55e_20cc2f20c6fe4f7399965924ce1d410d/1080p/mp4/file.mp4’,
https://video. wixstatic.com/video/4bd55e_ec6c9250ce49465992dd1caca3b2c9c4/480p/mp4/file.mp4
];

// get a random URL from the array
const randomUrl = videoUrls[Math.floor(Math.random() * videoUrls.length)];

// update the video background
updateVideoBackground(randomUrl);
});

function updateVideoBackground(url) {
$w(‘#vidsection’).background.src = url;
}