Changed all getElementsByClassName to querySelectorxxx