Remove duplicate var + function named `ajax`.