ReferenceError: apiUrl is not defined