Update rectangles.js

changed return values in adjustChildren()