Allow an external adapter.js to be used

To default to the standard adapter.js.