Refactored server/client code for attribute values so that the order they were specified in in config is reflected in the UI.
Removed unused JS variable allAttributeTypes