add html5 platform support