Tidy up, removal of global variable. Fixed bug with credits due to imdb json alteration