backbone extend function.