Reformat layout.js