Adaptable junction box with terminal