JS API call to get saved form data