update js client to support sessionDestroy