Executing JavaScript Working Alone but Not within Course

I have created a course and the final slide executes Javascript.  When I test it in my LMS, it doesn't work.  However, I took the single slide and created a new course.  It works as it should on my LMS.  Does anyone have an idea as to why the JavaScript would not work on a slide among many others?

3 Replies