Conditionally use G2 HTML5 logic and wrap
Merge pull request #3 from jb510/master

Conditionally use G2 HTML5 logic and wrap, props @jb510