cleanup of JavaScript lock in reference pages