Reverted ajax changes