Added deleteBuffer to Rect.js