finish upload js