Use define() in layout.js