Can not access outside module

I try to access function “ParticipantModerator” in file ‘index.html’
image
but i run web it notice error, how i can fix that:

You cannot do that in index.html. You need to modify the source code and rebuild it.

You can show me detail step.