Ratio resizing video element with JS