Add translator twig extension and improvement JS