Javascript is included in two ways. As defined by the user or by other scripts as dependencies.

The user changes includes by modifying the script src for the main mxn.js file:

Files for this demo:

script/mxn.js

script/modules/mxn.mapstraction.js
script/modules/mxn.polyline.js
script/modules/mxn.geocode.js
script/modules/mxn.route.js
script/modules/mxn.radius.js

script/google/mxn.mapstraction.google.js
...

script/yahoo/mxn.mapstraction.yahoo.js
...