@mindblender 
Please implement a single var pattern.

Pattern 1:
// Define.
var dom, backgroundDiv;

// Initialize.
dom = $(data);
backgroundDiv = dom.filter('#portalPage').find('div.up-portlet-content-wrapper-inner');

or 

// Define and initialize.
var dom = $(data),
     backgroundDiv = dom.filter('#portalPage').find('div.up-portlet-content-wrapper-inner');