Using requirejs for menu implementation.