Instant Runoff implementation using NodeJS