Refactor wegas-layout.js -> wegas-parent.js