(function ($) { Drupal.behaviors.nuvemWidget = { attach: function (context, settings) { $('.b2-sheet').css('width', $(document).width()); } }; })(jQuery);