fixed video dimension issue

Issue: some embedded videos did not have a height/width property, so the video ratio became NaN. The result was a 0 height video container. I added a fallback to offsetHeight/offsetWidth, which seemed to do the trick.
(Sorry about the whitespace issues in my commit, didn't notice them until pushing)