Replace $.extend with _.clone where appropriate