Fix for HTML5