more readable layout.js