Better JS link target detection, fix a few edge cases
"Check now" should stay in the same container