worked out a solution. Instead making the objects straight into an array, I created them as a variable and then pushed them into an array.
var contactArray = [];
var relayArray = [];
var SB_AS = new contacts('SB-AS', 924, 493, 924, 515, 918, 493, 918, 515, aux_on_off, 0)...