Fix the example for findRefTitle().
Simplify the code by removing the WebIDLProcessor class
and by defining local functions without 'var'.