Get Html Element Attribute Value Javascript Array Functions