How to let user add new item in a checkboxTree

Hi, I have a checkbox tree in my app and it has a few options that users for this app can select but I also want my user able to add other items if they want. I have created a js query script but seems like checkboxTree1.structure doesn't have any action that can update the content?