JS code formatting