Create ajax.js

demo code for ajax