Hi Irshad,
The simplest way is to group these four points.
var p1 = board.create('point', [1, 1], pointAttributes);
var p2 = board.create('point', [4, 1], pointAttributes);
var p3 = board.create('point', [4, 4], pointAttributes);
var p4 = board.create('point', [1, 4], pointAttributes);
var group = board.create('group', [p1, p2, p3, p4]);
And you canwrite your own rectangle element where this is done "automatically". See the source code for file polygon.js. There is a polygon defined and a regular polygon, which is a special polygon. Your rectangle will also be a special polygon :-)
Best regards
Eric