The BDX detector prototype for dark matter searches in a Beam Dump eXperiment at JLAB