In functions.php:

wp_enqueue_script('youtube-api', '//apis.google.com/js/platform.js');