Modify form submission to use recommended ajax code