minimize client JS before publish