This file is divided into small self invoking modules. You can find below the used pattern.
// Module name: [module name] // Dependencies: [JavaScript library/plugin which is required within this module] // Docs: [path to the documentation of the required library/plugin] (function(){ 'use strict'; var vids = $('.js-video-advanced'); vids.each(function() { var vid = $(this); var config = {}; var userConfig = vid.data('config'); $.extend(true, config, userConfig); vid.ytv(config); }); })();