refactored jquery for voting true/false