I have found on Silverstripe website this custom js programmation :
https://docs.silverstripe.org/en/3.2/developer_guides/templates/requirements/
Requirements::javascriptTemplate("cms/javascript/editor.template.js", $vars);
At the end of the requirements, how $vars must be inserted and is this possible to do the same action to css files?