Fixed getElementsByClassName check.
Removed old selector engine functions and fixed getElementsByClassName check.