I put this function in plot.js because it is likely to be used for enhancing the 'Add Tree' code so that it can display tree IDs and reach a state that is closer to what would happen when refreshing the page.