Update youtube.js

Updated some error checking