Javascript demo: Handle ambiguities
At the moment, the javascript demo only uses the first ambiguity. For the future it should handle multiple ambiguities. A possible extension should involve some kind of record, which ambiguity was chosen by the user, so that one can use this information later on.