Add getElementsByClassName function.