plugin/com.blackberry.pim.contacts/www/client.js
function (data, reason) {
            switch (reason) {
            case "cancel":
                if (onCancel && typeof(onCancel) === "function") {
                    onCancel();
                }

                break;
            case "done":
                if (onDone && typeof(onDone) === "function") {
                    onDone(data);
                }

                break;
            }
        }
function (data, reason) {
            switch (reason) {
            case "cancel":
                if (onCancel && typeof(onCancel) === "function") {
                    onCancel();
                }

                break;
            case "done":
                if (onDone && typeof(onDone) === "function") {
                    onDone(data);
                }

                break;
            }
        }
/*
options = {
mode: Single or Multiple or Attribute, // if mode=Attribute, then must specify kind filters
title: "some string",
confirmButtonLabel: "some string",
fields: ["phoneNumbers", "emails", "urls"]
}