Do you use `onYTApiReady` anywhere else aside from here? It looks like this is the only usage. If so, it would be clearer to just move the contents of the `onYTApiReady` function directly into this `onYouTubeIframeAPIReady` function, and delete the `onYTApiReady` function -- the setup you have right now seems like needless indirection, and is more difficult to read and understand.