Revert "Made changes to AJAX"

Reverts sant0sh/Agni#11