Issue #2356489 by thehong: Move JS code in quiz_set_auto_title() to separated file.