added support for html5