Abstract: If you build your own template or change a existing one you might wish to enable/disable the automatically adding from the caption.js so how is that done in Joomla?
Solution: The adding from the caption.js is controlled via:
JHtml::_(‘behavior.caption’);
So if you wish to remove that so that it isn´t added automatically for example you need to edit the part from your template and remove this string. This is for example added in com_content\article\default.php