Update layout.js

Remove test code