make copy, not use original object
recompile twig.js