Is it possible to link to assets using an asset helper in js files?

I create some html elements using javascript and they have images / video’s.
So in order for them to work right now I have put them in content/images/ but ideally I would want to put them in my theme folder/assets/images but how would I link to that folder in my js files?

Your javascript is served without any modification from Ghost, while your hbs goes through the handlebars compiler as the output depends on various contexts.

If you need to provide variable data to your javascript, the best way is via HTML, either by using data-* attributes on an element, or as a configuration that gets read when later

Alright thanks that clears it out :)