function extend(a, b) {
	var n;
	if (!a) {
		a = {};
	}
	for (n in b) {
		a[n] = b[n];
	}
	return a;
}
Extend an object with the members of another
@param {Object} a The object to be extended
@param {Object} b The object to add to the first one