Creates javascript twig block
Moves javascript to javascript block