Update global.js file

update ajax