var div = document.createElement("div");var x = document.getElementById("video_insert_4670");x.parentNode.insertBefore(div, x);var iframe_width = parseInt(div.offsetWidth);var iframe_height = parseInt(div.offsetWidth) * 9 / 16;iframe_height = Math.floor(iframe_height);div.innerHTML = '';