Caps win, end skid, boost confidence