Nav.js script not working with rocket loader

Recently i made some changes to my javascript files and purged all caches, but i find common error on my website that navigation wasn’t working when i debug the issue i found that the problem was with nav.js file which was not working due to rocket loader, i tried disabling rocket loader then all goes right but when i enable it again the function which are written in nav.js file doesn’t work, I tried clearing browser cache. Help me getting this issue resolved