Array Object Javascript Get Element By Attribute