fixed nextID in Utils of js version.