querySelectorAll polyfill and little fixes