Responsive Embedded Video via JavaScript

monkeyraptor.johanpaul.net/2015/05/javascript-making-responsive-size.html

This has 100% of width, with 16 : 9 dimensions ratio if the window has < 640px of width.
Function is invoked at DOM load and window resize event.
See "page source" to see what's in this.