[3.8] Fix JS code style