Please Help. Just bought 1999 Previa LE S/C with 195k miles w/salvage title. Previous owner stated it has an intermittent issue with it stalling during driving. Drove 8 miles home and it did not stall. Decided to go get gas and it stalled as I was approaching a stop sign. Started right backup immediate and drove 15 ft before it stalled again. Made it back home 2 minutes later with no problem. There is no hesitation during acceleration or sputtering, the car simply stalls. When it stalls, all normal lights on instrument cluster remain on including check engine until I restart the car again. This evening I decided to start the car and simply let it idle a few minutes to see if it will stall if I am parked, and sure enough it stalls, but will start right back up again with no hesitation. On my second attempt, I started the car and let it idle for about 4 minutes and notice smoke coming out of fuse box under the front dash. Open up the panel and found a jumper wire between the EFI fuse & Engine Oil Lvl relay. The jumper wire insulation was melting onto the Engine Oil Lvl relay. I disconnect the jumper wire between the EFI fuse & Engine Oil Lvl relay and attempted to start the car, but got a "crank and no start." Obviously there is reason someone used the jumper wire, but I need help understanding how to troubleshoot this issue. The EFI fuse is good. So where do I start and how?

On a side note, I also found that the fuse box that's part of the positive battery terminal in front of the car is hotwired with a white jumper wire from the fuse box to the the positive battery wire. Furthermore, The main positive battery wire was too short to attach to the battery terminal so they spliced a jumper wire to the battery terminal. see attached.image.jpg

I would like to see a picture of how the front fuse box should hook up to the battery so i can resplice it correctly. All feedbacks are appreciated. Thanks.