<script> params= { ‘rcode’: ‘123456’, ‘email’: ‘batman@gothamcity.foo’, }; function myCallback(error) { if (!error) alert(‘Your reservation has been cancelled! Check your email to see details’); else alert(‘An error occurred: ‘ + error); } WuBook.cancel(params, myCallback); </script>