Updating var declaration of response

to be js-lint compatible and work