var Message = Class.create(); Message.prototype = { string: '', display: function() { alert(this.string); }, };