tidy code
cleaner ajax