Add layout submenu and main javascript