added respond.js

Signed-off-by: Callum Macdonald <callum@redevolution.com>