This example shows how to create an extension and utilize an external library.
Note that the js is not minified so it is readable. See Ext.ux.GMapPanel.js and window-basic.js for the full source code.