While the Apple document is confusing, MINDEX pops ```k``` from the stack, remove ```ek``` from middle of the stack, and push ```ek``` onto the stack. Please see "Stack before" and "Stack after" carefully.
And PDF.js actually fail to parse some TT programs without this change.