moved some functions to youtubeapi.js