Added the get elements by tag name function