A demonstration of using ajax for form submission and the difference between json and html responses