Based on js2form, saves and loads form data