Add resetGlobalVars function and place within getMovieIDs.