> Can we add this decorator here @js_defined('window.YT')? We need to wait when YT API  will be uploaded.

I think we can use the decorator here but Unfortunately I am not sure about this.