fix js file output