add the unbind function to the dispatcher (javascript client)