Update scripts.js

fixed margins and fixed number of blocks appended per row