added html5 functionality