MDL-46760 mod_scorm: Fix js error when preview mode disabled
MDL-45887 mod_scorm : Fixing coding standard violations
MDL-45887 mod_scorm : Fixing variable names