Added js to close navbar if it's open when clicked