Use jquery to dynamically update form's input value and upload dictionary json file