MDL-40563 improve coding style in style serving script