I don't completely understand your question but I will try to answer it.
The wheels were specifically designed to do that. The internal wiring of the wheels was random, but known. For example, every "Rotor I" that exists would have A wired to E, B wired K, C wired to some other letter on the other side etc... But then "Rotor II" would have A pointing to, let's say, M, B to L ..
And yes, they were specifically designed to do that, the whole point of it was for the electrical current to travel randomly and take an unique path throughout the rotors on each key-press.
Hmm.. Not sure what is causing your problem. I was testing the software on Firefox (69.0) while writing it and it works just fine. Maybe you're blocking JS or something?