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).
Merge pull request #2456 from Nanodesu/master

Quote selector in tooltips.js