Added js-side menu creation