added html5 api demo code