MDL-37514 module.js: fix .js for auto quiz submission in preview mode