compression the nav.js and scroll.js