fix bugs with ajax episode fetch and viewed episodes