wrap dom related parts in $()