updating location childcount in js