Fix JS code formatting