Create 2 utility functions for selecting elements.
- elIs takes an Element | null (ex: from document.querySelector()), and a class (ex: HTMLAnchorElement), then returns the element if it exists and is an instanceof the class, and throws an error if its null or the wrong type. Also optionally takes a name for the error message. This should be used when it's known that the element will be of a given type and it's critical failure if its wrong.
- querySelector wraps elIs by performing the query for you, to reduce line length.
- querySelectorAll performs elIs/querySelector on a nodelist. Again to reduce line length