make dedicated js files for dynamic pages