Adding detail error messages for HTML5 and Flash