Get Html Element Attribute Value Javascript Array Length