added HTML5 support for older browsers