added HTML5 support