referencewidget.js: Replace "." with "\\." in selectors