refactor upload js & html to always use only js to fill form data