Changing getElements by querySelector