js file to work with responsive menu