fix js file config