The example template is here.
Use 'elementId' as a parent element to append all custom libraries.
For example to use createjs library you need to paste this code:
var custom_script = document.createElement('SCRIPT');
custom_script.type = 'text/javascript';
custom_script.src = 'https://code.createjs.com/1.0.0/createjs.min.js';
document.getElementById(elementId).appendChild(custom_script);
To add FEED data to your creative you need to use these macros:
products[0].url products[0].price products[0].description products[0].picture