Attempt to fix issue #673 on the main video.js page. Most credit to github user @jewel for the code changes. I just rearranged to fix minified generation, though this is another issue to look into.