election javascript uses new delegates election count api