[3.9] Fix JS code style