JavaScript implementation of the German electoral system ;)