This fixes #8347.  The api for the script inclusion changed.