[layout.js] overview of struts calculation