Move the sample tree to common.js