mocks.js
function(typeName, obj) {
		this.type = typeName;
		if(typeof obj !== 'undefined')
			for(var key in obj) 
				this[key] = obj[key];
	}
function(typeName, obj) {
		this.type = typeName;
		if(typeof obj !== 'undefined')
			for(var key in obj) 
				this[key] = obj[key];
	}
A mock of the salesforce SObject object