transform the layout.js plugin