Replace $.extend with $.objectAssign