using requestAnimationFrame instead of setInterval
cleaned up trees directory