Javascript to make the video overlay fluid