added js example for didrequest