adjust js so it closes the menu on resize