format layout.js