Programmatically submit form via ajax