Pull loading of YouTube script into a function

Pull loading of YouTube script into a function to support delayed loading. This will allow multipage templates that do not set the callback until later in the app (not at startup).