Make ResizableRectangle inherit Rectangle
Add border selection feature. Give smaller shapes higher selection priority when overlapping
Create helpers.coffee. This file contains useful JavaScript idioms