Simplify AJAX method