Justin, that did it! Your tweaking of the query made the object work properly - option (ii).
I've since gone on to drastically edit the Javascript so more of the text is called from the db query - dynamic name, tags, description, and categorising the resource type based on 'Video', 'PDF' or 'Podcast' being one of the tags present.
Shared here if useful to others, heavily relies on bootstrap (tested with Boost Campus theme, but any Boost will do) but with some fumbling others can get it to work too.
Sample: