Fix tooltip positioning again, now without jquery

Fixes #2861