delete count in js, dealing with that later