fix local js read issue