handling id selectors better

If `selector` is set to `id` in the configuration, it will now use `#id` (rather than the much slower `[id=attr]`) to look up the element.