Update scripts.js

resized rows to fit the block size (squarelength), fixing the whitespace problem.