demo for js