This is what you could do with JavaScript in Moodle