Sorry, I answered too quickly, I hadn't understood.
What about this?
What about this?
Code:
var A_ITEMS = [
'<?php get_theme_url(); ?>/img/pic01.jpg',
/* ... */
'<?php get_theme_url(); ?>/img/pic09.jpg'
];