Encapsulated API calls in function callAPI(movieSearchname), commented out global var movieSearchname, successfully called callAPI('Dirty Dancing');