voting server side, working on client side.  error: not allowed to use toString method clientside