Refactored the tmdb api handler again and fixed up the require statements.