With the current developer build of X3DOM we provide a component system which allows you to load a core X3DOM library and then subsequently add extensions from separate files. You can also create your own extensions to X3DOM.
Resources:
Please note that the location of the development build also changed with this feature. From now on the current developer build resides in x3dom.org/release/dev/.