Implementation of js menu for mobile.