change JS code formatting