Fix JS buglets, make single-choice elections work again, add back to demo
Add support for generating ranked hoipoi elections