Reducing $.extend function calls to improve performance.