MDL-37366 Fix JS Lint issues with moodle-core-formautosubmit