Update xv-youtube-playlist.js

updated ended callback to send api as a first argument