I need help with under the dash wiring brake switch and such

You have a diagram/ shop manual? Go to MyMopar and download one. What color is the other dangling wires? And are you sure it's "factory?"