modifications sample.ajax.js