function tube (obj, t, r, b, l) { this.obj = obj; this.t = t; this.r = r; this.b = b; this.l = l; } var elem1 = new tube(document.body.children[0], 0, 1, 1, 0);