Fix JS code style