Make javascript more dynamic for TVShow detail