Either there could be a vacuum line loose somewhere (the engine would probably run rough if this was the case), or there could be an electrical wire that grounds out when the brakes are applied. This could be the case since the car only does it when the brakes are mashed suddenly, causing the front of the car to dive. Maybe when the car dives down, the wire touches something and grounds out?