Simplified getEpisodeIndex() from trakt.js to use findIndex method