alg.js: small mirroring code fix.