Javascript based navigation menu for mobile and responsive layouts