why is this working?
var movieName = encodeURI("deadpool");
var url = "https://api.themoviedb.org/3/search/movie?api_key=" + apiKey + "&query=" + movieName;
and this not?; iven put a console log to check and that works
var movieName = $(".shown .title").html();
console.log(movieName);
var url = "https://api.themoviedb.org/3/search/movie?api_key=" + apiKey + "&query=" + encodeURI(movieName);