Updated js to handle navigation click on touch device