I have used Prototype.js in my past and was able to write classes uing:
var XEventDesc = Class.create();
XEventDesc.prototype = {
initialize: function(element, eventName, handler, useCapture) {
....................
}
};
How do I write classes in Javascript using jQuery
There appear to be some jQuery plugins that do this (e.g., http://plugins.jquery.com/project/HJS). However, you’ll probably find something that better fits your needs outside of jQuery.