made .classes get added to classes='attribute' if it exists