dot vote in js