refactor upload
add new upload js