manage js root on referential