add function getElementsByClassName() to leaves.html for testing.