Js tooltip title fix

Fixes #4498