removing obsolete code
complete jquery revamp of nav.js