MDL-41665 scorm index.php: Rewriting using html_writer