changed querySelectorAll implementation to allow for ie7 support