cleanup of JavaScript lock in reference pages

How vexing.  I never did the pull request for this.