Update main.js

Add style for owned rects.