Renamed response function to makeResponse so that it doesn't conflict with the builtin method