Reducing $.extend function calls to improve performance.(2nd)