fix local js file