I figured out that the video was not resetting after being played the first time; The second time it just remained on the last frame of the video. I did not manage to reset the videos in javascript, but I solved it by making multiple copies of the same video and let the program load a different copy each time.