fix js compress with new package prepare directory