Amending 0982c50 for #165

. . . where no public access to the current script caused a JavaScript
type error.