Conditionally use G2 HTML5 logic and wrap