cleaned up the code a bit, removed console.logs and changed the playNext behaviour to only set the next playing video's tab active, if the currently ended video's tab was active