systematic use of doAnchor class and js