Simple extend function based on underscore