open-video.html: Moved JS code to scripts.js