Update main.js

Line 125: changed maxHeight >= 7 to maxHeight >= 6