added html5 check