Fix votes, and a javascript error (#37)