That is a JavaScript error because the old method add_spotlight doesn't exist, and was replaced by add_spot_light which has different parameters.
var nav_red = {color:{x:0.01,y:0,z:0,w:0}, angle:85, size:0.15, edge:0.99, range:0.1, intensity:30, fadeout:0.00001};
this.add_spot_light({x:-5.652,y:-2.49,z:1.72}, {y:1}, nav_red);
There could be other errors from out of data methods as well.
Regards,
Uriah