jQuery(window).on('load', function() { new JCaption('img.caption'); });