Using JavaScript to add dynamic TABs (different content for different products) is really really bad idea. PHP must be used for this. If you manage to submit unique content for each product differently, then why not to print right away with PHP? It is easier, faster and stable.
Using PHP to print unique content (different content for different products) in the custom TABs; requires custom modifications on the product details's PHP file.
This is considered as 100% custom modification
(because you want to change how the things work/look) and unfortunately we don't provide free support or step-by-step instructions for custom coding modifications.
You may purchase premium support:
www.flexiblewebdesign.com/premium-support
and let us take care this modification for you directly on your website though.
Regards.
Support