Fix error when view JS file.