copied demo code to web page