fix path issue with js files