Custom code needed

More details here, I managed to fix most of it but stuck on last step = inserted CMS generated data into script tag (to generate the media list).

Hi Nick,
Please try not to double post.
If you need help, or trying to find someone to hire for a job, give some details about the problem, and the relevant links (read-only link, published site, and a reference if possible)