trees.js fix for overlapping JS