CakePHP javascript->link in elements

For my CakePHP project I wanted to use the Javascript helper in a element. This element needs a javascript include (which i only use for this element) so I thought to it would be a good place to add it using the Javascript helper in the element template. To my surprise the javascript did not [...]