javascript to hide voted