Update ajax-wrapper.js

bug fixed