You could create the default style outside the getKmlLayer function, once for good.