Nit: Can just do ``var currentStyle = null;`` here and remove the ``var currentStyle;`` line above.