Fixed js output directory bug