Add javascript to demo