add JS snippet to translate anchors. Test run.