Fixes to subs and js module defs

- In checkCorrect, one index was being checked twice, the other never.
- Array def in m3/m4 subs now correct.