MDL-40806 JavaScript: Add module metadata in JS dev modes
MDL-40811 JavaScript: Create a course-util module to reduce code duplication
MDL-40811 JavaScript: Use the new moodle-course-util functions