Issue #2344701 by psha: Fixed Target selector bug in javscript anchor fixes.