linking and cleaning some js files