Referring to the amount of cognitive function someone has relative to a period of time. It can be used as a general gauge for creativity, energy, mental capacity, etc. Similar context to gasoline as fuel for a car.
"There's no way I can work on this project, I'm out of brain juice after that test."
"Get some sleep, it'll help you get back some brain juice"