added methods to JavaScript client for getting and setting participant details.