Change window.location.path to location.path in youtube.js.