Creating classes in JavaScript is easy as creating a constructor function and using the new keyword when creating an instance of that class.
Declaring the class:
var Person = function(config) { Ext.apply(this, config); };
Creating a new instance of the class:
var me = new Person({ firstName: 'Joe', lastName: 'Smith', birthDate: '1/1/1980' });