Replace extend with _.extend