neater layout.js