Fix to only work in browsers that support querySelectorAll