Update ajax.js

added sub function configure which creates a customized ajax function.
added temp code from the mdn site just to see benchmarks and technique.

Todo:
add license and documentation
add minified version