YouTube: Inline youTubeEvent function

onReady isn't required because the example code only shows if for the
auto-play functionality