fix 'ReferenceError: resp is not defined'

Function argument is called 'response', however the code uses 'resp' instead, resulting in 'ReferenceError: resp is not defined'.