[Tutorial] Get rid of XPCOM syntax with JS Modules and Components.Constructor
In case you dislike the syntax of creating XPCOM components, you can use Components.Constructor to achieve a more Javascript like syntax for object-creation. Combine this with JS modules and your constructors can be accessed from everywhere.