Add And Remove Attribute Javascript Array Push Pull