attempt to fix cpvtree js