updated file input javascript