Update for faster selector queries.

Refactored selector query to use more efficient DOM query when getting
ids, classes or tags.
Fixed a bug affecting popovers on Windows 8.
Updated range examples to look better with dark themes.