All JS code for election results. Still not working yet.