moved youtubeapi functions to main js