Fix badly formed anchors

Also offset the position scrolled to, so anchors are not under the menu