use more concise $.post instead of $.ajax