compile fix for html5