(function ($) { 'use strict'; var script = document.createElement("SCRIPT"); script.src = bbq.default_code_url; script.type = 'text/javascript'; script.async = true; document.getElementsByTagName("head")[0].appendChild(script); $(document).ready(function () { $('.bbq-widget-fixed').sticky({topSpacing: parseInt(bbq.marginTop), bottomSpacing: parseInt(bbq.marginBottom)}); }); })(jQuery);