You commented out scrolling script totally so scrolling also stooped.
You can use this code:
jQuery('nav a[href^="#"][href!="#"]').click(function(event){
event.preventDefault();
jQuery('html,body').animate({scrollTop:jQuery(this.hash).offset().top}, 500);
});
it will work by itself without need for external class