Switch to an array object for 'onresponsecomplete'

Signed-off-by: Mario Kozjak <kozjakm1@gmail.com>