added ajaxexample.js

added internal ajaxexample.js file