.'on' to .'click' in scripts for nav bar fix