video.addEventListener for ended event handler
a good example for CSS relative positioning