fixed bundling issues with js files