fix js file code