added html5 support