added localStorage to prevent multiple upvotes