getElementsByAttributeName javascript method added