Ajaxifying form (server-side code complete)