Quote selector in tooltips.js

Fix the case when `selector` has a space char in it (e.g. id attribute of the element with tooltip has a space).